package com.infonova.product.jtf.blame.dto;

import junit.framework.Test;
import junit.framework.TestResult;


public class TestedMethod implements Test {

    private final String testClazz;
    private final String testMethod;
        
    public TestedMethod(String testClazz, String testMethod) {
        this.testClazz = testClazz;
        this.testMethod = testMethod;
    }

    
    public String getTestClazz() {
        return testClazz;
    }

    
    public String getTestMethod() {
        return testMethod;
    }

    @Override
    public int countTestCases() {
        return 1;
    }

    @Override
    public void run(TestResult result) {
        throw new IllegalArgumentException("run not supported");
    }
    
    @Override
    public String toString() {
        return testClazz + "." + testMethod + "()";
    }
    

}
